[Unit]
Description=Kubernetes API Server
Documentation=https://github.com/GoogleCloudPlatform/kubernetes
After=network.target
After=etcd.service

[Service]
Type=notify
EnvironmentFile=-/etc/kubernetes/config
EnvironmentFile=-/etc/kubernetes/apiserver
ExecStart=/usr/bin/kube-apiserver \
	    $KUBE_LOGTOSTDERR \
	    $KUBE_LOG_LEVEL \
	    $KUBE_ETCD_SERVERS \
		$KUBE_ETCD_CAFILE \
		$KUBE_ETCD_CERTFILE \
		$KUBE_ETCD_KEYFILE \
	    $KUBE_API_ADDRESS \
	    $KUBE_API_PORT \
		$BIND_ADDRESS \
		$SECURE_PORT \
	    $KUBELET_PORT \
	    $KUBE_ALLOW_PRIV \
	    $KUBE_SERVICE_ADDRESSES \
	    $KUBE_ADMISSION_CONTROL \
		$KUBE_API_CLIENT_CA_FILE \
		$KUBE_API_TLS_CERT_FILE \
		$KUBE_API_TLS_PRIVATE_KEY_FILE \
		$SERVICE_ACCOUNT_KEY_FILE \
	    $KUBE_API_ARGS
Restart=on-failure
LimitNOFILE=65536

[Install]
WantedBy=multi-user.target
